<?php
/**
 * 监听进程消息事件
*/

namespace event\tcp;

class onMessage
{
    /**
	 * 启动实例
	*/
    public $server;
    
    /**
     *  服务配置
    */ 
    public $config;
    
    /**
     * 接收服务实例
    */
    public function __construct($server, $config) {
        $this->server = $server;
        $this->config = $config;
    }
    
    /**
     * 统一回调入口
    */
    public function run(\Workerman\Connection\TcpConnection $response, $request) {
        // 调用二次转发，不做重载
        $on = new \event\server\onMessage($this->server, $this->config);
        $on->run($response, $request);
    }

}

